package com.gamiao.dwr.test;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DWRtest {
	public String getServerTime(String comment) {
		System.out.println("Get client comment is:" + comment);
		Date now = new Date();
		SimpleDateFormat timeFormat = new SimpleDateFormat(
				"yyyy-MM-dd HH:mm:ss.SSS");
		System.out.println("Sends server time is:" + timeFormat.format(now));
		return timeFormat.format(now);
	}
}